package com.itheima.ydd;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * 优点达boot启动类
 */
@SpringBootApplication//启动注解
@EnableCaching//开启缓存
@EnableTransactionManagement//开启事务支持
@ServletComponentScan//开启boot中的过滤器
@Slf4j //酸辣粉日志
public class YddApplication {
    public static void main(String[] args) {
        SpringApplication.run(YddApplication.class,args);
        log.info("优点达项目启动成功!");
    }
}
